<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once ('db_conn.php');
require("function.php");
$sql="select * from tb_ad where isshow=1 order by id desc limit 0,5";
$adrs=$db->query($sql); 
$adrows=$adrs->fetch_all(MYSQLI_BOTH);



$sql2="SELECT * FROM tb_news order by id ASC limit 1";
$abs=$db->query($sql2);
$abc=$abs->fetch_array(MYSQLI_BOTH); 

$sql="SELECT * FROM tb_news limit 0,5";
$ab1s=$db->query($sql);
$abc1s=$ab1s->fetch_all(MYSQLI_BOTH);


//走进元通
$sql3="select * from tb_zjyt where isshow=1 order by id desc limit 1";
$adr3s=$db->query($sql3); 
$adrow3s=$adr3s->fetch_all(MYSQLI_BOTH);

//车胎品牌1

$sql4="select * from tb_ltpp where isshow=1 order by id desc limit 0,3";
$adr4s=$db->query($sql4); 
$adrow4s=$adr4s->fetch_all(MYSQLI_BOTH);






//轮胎产品
$sql5="select * from tb_ltcp where isshow=1 order by id desc limit 0,10";
$adr5s=$db->query($sql5); 
$adrow5s=$adr5s->fetch_all(MYSQLI_BOTH);

//客服咨询
$sql6="select * from tb_kfzx  order by id desc limit 1";
$adr6s=$db->query($sql6); 
$adrow6=$adr6s->fetch_array(MYSQLI_BOTH);

require 'index_html.php';



$adr6s->free();
$db->close();